<?php

include dirname(__FILE__)."/../database/database.class.php";

if(!isset($_COOKIE["MGTDatabase_user"]) || !is_numeric($_COOKIE["MGTDatabase_user"]))
{
  $_COOKIE["MGTDatabase_user"] = 0;
}

if(!isset($_GET['cardid']))
  echo "Total: 0 | 0";
else
{
  if(!isset($_GET['collectionid']) || !is_numeric($_GET['collectionid']))
  {
    $_GET['collectionid'] = 0;
  }
  
  $total = $db->getTotalCardCount($_GET['cardid'], $_COOKIE['MGTDatabase_user'], $_GET['collectionid']);
  echo "In: $total->amount_normal | $total->amount_foil &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp; Total: $total->total_amount_normal | $total->total_amount_foil";
}
?>
